package com.oocl.webmvc.pojo;

import java.io.Serializable;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

/**
 * @description: 
 * @author  XIEMI2
 * @date Aug 7, 2017 4:17:36 PM
 * @version 1.0
 */
public class Customer {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String id;
	private String name;
	private boolean sex;
	private double sal;
	@DateTimeFormat(pattern="yyyy-MM-dd")
	private Date birth;
	
	
	public Customer() {
		super();
	}


	public Customer(String id, String name, boolean sex, double sal, Date birth) {
		super();
		this.id = id;
		this.name = name;
		this.sex = sex;
		this.sal = sal;
		this.birth = birth;
	}


	public String getId() {
		return id;
	}


	public void setId(String id) {
		this.id = id;
	}


	public String getName() {
		return name;
	}


	public void setName(String name) {
		this.name = name;
	}


	public boolean isSex() {
		return sex;
	}


	public void setSex(boolean sex) {
		this.sex = sex;
	}


	public double getSal() {
		return sal;
	}


	public void setSal(double sal) {
		this.sal = sal;
	}


	public Date getBirth() {
		return birth;
	}


	public void setBirth(Date birth) {
		this.birth = birth;
	}


	@Override
	public String toString() {
		return "Customer [id=" + id + ", name=" + name + ", sex=" + sex + ", sal=" + sal + ", birth=" + birth + "]";
	}
	
	
	
}


